﻿using Ewell.Interface.Common.Model.Constant;
using Ewell.Interface.Common.Model.GateWay.Dto.Oauth;
using Ewell.Interface.Common.Model.GateWay.Dto.Out;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.Interface.Common.Model.GateWay.GateWayUriInfo
{
    public class TradeLogServe : GateWayUri
    {
        public override string url => "dubbo/cc.ewell.his.oauth.service.inter.dubbo.external.TradeLogServe";
        public GateWayMethod init => new Init(url);
        public GateWayMethod updateByByPrimaryKeyExample => new UpdateByByPrimaryKeyExample(url);
    }

    public class Init : GateWayMethod
    {
        public Init(string baseUrl) : base(baseUrl)
        {
        }

        public override string methodName => "init";

        public override string paramClass => "cc.ewell.his.oauth.upon.req.TradeLogReq";

        public override DubboParamType paramType => DubboParamType.defaultParam;

        public override Type requestParamType => typeof(TradeLogReq);

        public override Type responseParamType => typeof(TradeLogResp);
    }

    public class UpdateByByPrimaryKeyExample : GateWayMethod
    {
        public UpdateByByPrimaryKeyExample(string baseUrl) : base(baseUrl)
        {
        }

        public override string methodName => "updateByByPrimaryKeyExample";

        public override string paramClass => "cc.ewell.his.oauth.upon.req.TradeLogReq";

        public override DubboParamType paramType => DubboParamType.defaultParam;

        public override Type requestParamType => typeof(TradeLogReq);

        public override Type responseParamType => typeof(TradeLogResp);
    }
}
